﻿using CompanyCMS.App_Code;
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CompanyCMS.Admin
{
    public partial class brandmanage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Bind(1);
            }
        }

        void Bind(int index)
        {
            gvbrand.DataSource = CommonBLL.GetBrand(index);
            gvbrand.DataBind();
        }

        /// <summary>
        /// 添加品牌
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/admin/editbrand.aspx");
        }


    }
}